/*
 * XML Type:  AddressRequestType
 * Namespace: http://www.hpsearch.org/schemas/2006/05/BSA
 * Java type: cgl.narada.mgmt.schemas.bsa.AddressRequestType
 *
 * Automatically generated - do not modify.
 */
package cgl.narada.mgmt.schemas.bsa.impl;
/**
 * An XML AddressRequestType(@http://www.hpsearch.org/schemas/2006/05/BSA).
 *
 * This is a complex type.
 */
public class AddressRequestTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements cgl.narada.mgmt.schemas.bsa.AddressRequestType
{
    
    public AddressRequestTypeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName LINKID$0 = 
        new javax.xml.namespace.QName("", "linkID");
    private static final javax.xml.namespace.QName LEVEL$2 = 
        new javax.xml.namespace.QName("", "level");
    
    
    /**
     * Gets the "linkID" element
     */
    public java.lang.String getLinkID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LINKID$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "linkID" element
     */
    public org.apache.xmlbeans.XmlString xgetLinkID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LINKID$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "linkID" element
     */
    public void setLinkID(java.lang.String linkID)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LINKID$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LINKID$0);
            }
            target.setStringValue(linkID);
        }
    }
    
    /**
     * Sets (as xml) the "linkID" element
     */
    public void xsetLinkID(org.apache.xmlbeans.XmlString linkID)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LINKID$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(LINKID$0);
            }
            target.set(linkID);
        }
    }
    
    /**
     * Gets the "level" element
     */
    public int getLevel()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LEVEL$2, 0);
            if (target == null)
            {
                return 0;
            }
            return target.getIntValue();
        }
    }
    
    /**
     * Gets (as xml) the "level" element
     */
    public org.apache.xmlbeans.XmlInt xgetLevel()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(LEVEL$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "level" element
     */
    public void setLevel(int level)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LEVEL$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LEVEL$2);
            }
            target.setIntValue(level);
        }
    }
    
    /**
     * Sets (as xml) the "level" element
     */
    public void xsetLevel(org.apache.xmlbeans.XmlInt level)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(LEVEL$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(LEVEL$2);
            }
            target.set(level);
        }
    }
}
